package ejb.contentManagement;

import java.util.List;

import ejb.dto.HotelDTO;

public interface HotelMgr {

	/**
	 * Return HotelDTO of Hotel identified by <code>id</code>
	 * @param id
	 * @return HotelDTO
	 */
	HotelDTO getHotelDTO(int id);

	/**
	 * Return all HotelDTO
	 * @return all HotelDTO
	 */
	List<HotelDTO> getAllHotelsDTO();

	/**
	 * Delete Hotel identified by <code>id</code> from database
	 * @param id
	 * @return <true> if the operation on database is successful, <false> if not
	 */
	boolean deleteHotel(int id);

	/**
	 * Update Hotel identified by <code>updatedHotel</code> in database
	 * @param updatedHotel
	 * @return <true> if the operation on database is successful, <false> if not
	 */
	boolean updateHotel(HotelDTO updatedHotel);

	/**
	 * Insert Hotel identified by <code>newHotel</code> in database
	 * @param newHotel
	 * @return <true> if the operation on database is successful, <false> if not
	 */
	boolean insertHotel(HotelDTO newHotel);

	/**
	 * Return all HotelDTO of Location identified by <code>locationId</code>
	 * @param locationId
	 * @return all HotelDTO of one Location 
	 */
	List<HotelDTO> getAllHotelsByLocation(int locationId);



}
